<template>
	<view>
		<view class="houseList" v-for="(item,index) in transferData" :key="index"
			@click="$u.route('/pagesIndex/transfermain/transfermain',{id:item.id})">
			<u-image width="220rpx" height="160rpx" :src="item.picList[0]">
			</u-image>
			<view class="cont">
				<view style="display: flex;flex-direction: row;flex: 1;align-items: flex-start;">
					<u-icon v-if="item.isZhiding=='1'" name="/static/images/top.png" size="40"
						style="margin-right: 10rpx;"></u-icon>
					<text class="title">{{item.name}}</text>
				</view>
				<view class="cell">

					<text class="price">{{item.zongjia}}元</text>
					<text class="info">{{item.createTime}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "CarList",
		props: {
			transferData: {
				type: Array,
				default: []
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.houseList {
		display: flex;
		flex-direction: row;
		padding: 20rpx;
		background-color: white;
		border-bottom: 1rpx solid #e6e6e6;

		.cont {
			display: flex;
			flex-direction: column;
			flex: 1;
			margin-left: 20rpx;

			.title {
				font-size: 32rpx;
				color: #333333;
				font-weight: 600;
				word-break: break-all;
				display: -webkit-box;
				-webkit-line-clamp: 1;
				-webkit-box-orient: vertical;
				overflow: hidden;
			}

			.info {
				font-size: 26rpx;
				color: #999999;
				margin-top: 20rpx;
			}

			.cell {
				display: flex;
				flex-direction: row;
				align-items: center;
				justify-content: space-between;
			}

			.price {
				color: #ff2d45;
				font-weight: bold;
				margin-top: 20rpx;
			}
		}
	}
</style>
